icon

Usetutoringspotscode to get 8% OFF on your first order!

java

CISP21 INSTRUCTIONS

Write a program that will help a student practice basic math (addition, subtraction, multiplication, and division).Display a menu the student can select from. The student will make a selection and will have the option to continue with that type of math problem. When the student is done with that type of math problem the main menu will be displayed and allow the student to select another type of problem. When the student exits the program their results will be displayed (ex. Addition:3 correct 2 incorrect)

REQUIREMENTS :

Pseudocode design

Properly named fields and methods

Ifs, loops, switchs (basic error checks)

Randomize numbers

REQUIREMENTS :

Pseudocode design

Properly named fields and methods

Ifs, loops, switchs (basic error checks)

Randomize numbers

Randomize 0-10 for numbers in the math problems.

Use fields to track the correct and incorrect counts.

Break everything down to smaller simpler methods and code

Try not to over complicate

You can leave a response, or trackback from your own site.

Leave a Reply

java

java
Write a short java statement for each question item
Section one

1) Declare a variable for each of the data types, pay attention to the naming convention andsyntax

a. anint variable representing the number of students, the value of this variable is 45.
b. a double variable representing a student’s GPA.
c. a float variable representing the amount you need to pay for gas at a gas station.
d. a char variable that has the value of C.
e. a String variable containing the name of your pet/hometown/your favorite dish.
Section two

2) Write down the result for the following statement.

a. int a = 15;
float b = 15.0;
c = a + b;
Question: the data type of c should be ______
b. int a = 5;
double b = 15.0;
c = a + b;
Question: the value of c is ______, the data type of c is _______
c. intnumOfPeople = 10;
intnumOfApple = 4;
c = numOfPeople / numOfApple;
Question: the value of c is _______, the data type of c should be _______
d. intnumOfPeople = 10;
intnumOfApple = 4;
c = numOfPeople % numOfApple;
Question: the value of c is _______, the data type of c should be _______
e. intnumOfPeople =10;
intnumOfApple = 4;
doubleapplePerPerson = 0.0;
applePerPerson = numOfPeople / numOfApple;
Question: the value of applePerPerson is ______.
f. int num1 = 5;
int num2 = 4;
int result = num1 % numb2;
Question: the value of result is __________.
g. Let assume you have 1003 cents, using / and % to write a block of java statement to
calculate the number of dollars, quarters, and cents you have.
Section Three

Write a block of pseudo code that captures the following federal tax bracket, please note that the
following chart is an approximation of the tax bracket, but is not the actual tax bracket:
For people who file single status,
Taxable income tax bracket
0 – $8,500 10%
$8500-$34,500 15%
$34,500 – $83,600 25%
$83,600 – $174,400 28%
$174,400 – $379,150 33%
$379,150 above 35%

Responses are currently closed, but you can trackback from your own site.

Comments are closed.

java

java
Write a short java statement for each question item
Section one

1) Declare a variable for each of the data types, pay attention to the naming convention andsyntax

a. anint variable representing the number of students, the value of this variable is 45.
b. a double variable representing a student’s GPA.
c. a float variable representing the amount you need to pay for gas at a gas station.
d. a char variable that has the value of C.
e. a String variable containing the name of your pet/hometown/your favorite dish.
Section two

2) Write down the result for the following statement.

a. int a = 15;
float b = 15.0;
c = a + b;
Question: the data type of c should be ______
b. int a = 5;
double b = 15.0;
c = a + b;
Question: the value of c is ______, the data type of c is _______
c. intnumOfPeople = 10;
intnumOfApple = 4;
c = numOfPeople / numOfApple;
Question: the value of c is _______, the data type of c should be _______
d. intnumOfPeople = 10;
intnumOfApple = 4;
c = numOfPeople % numOfApple;
Question: the value of c is _______, the data type of c should be _______
e. intnumOfPeople =10;
intnumOfApple = 4;
doubleapplePerPerson = 0.0;
applePerPerson = numOfPeople / numOfApple;
Question: the value of applePerPerson is ______.
f. int num1 = 5;
int num2 = 4;
int result = num1 % numb2;
Question: the value of result is __________.
g. Let assume you have 1003 cents, using / and % to write a block of java statement to
calculate the number of dollars, quarters, and cents you have.
Section Three

Write a block of pseudo code that captures the following federal tax bracket, please note that the
following chart is an approximation of the tax bracket, but is not the actual tax bracket:
For people who file single status,
Taxable income tax bracket
0 – $8,500 10%
$8500-$34,500 15%
$34,500 – $83,600 25%
$83,600 – $174,400 28%
$174,400 – $379,150 33%
$379,150 above 35%

Responses are currently closed, but you can trackback from your own site.

Comments are closed.

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes